<div ng-controller="HongbaoCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'红包活动'| translate}}</li>
        <li>{{'List'|translate}}
            <a href="#/hongbao/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right">
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'id'|translate}}</th>
                <th>{{'语音内容'|translate}}</th>
                <th>{{'赠送方式'|translate}}</th>
                <th>{{'红包金额'|translate}}</th>
                <th>{{'红包数量'|translate}}</th>
                <th>{{'起始时间'|translate}}</th>
                <th>{{'operation'|translate}}</th>
                <th>{{'二维码'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in hongbao_list">
                <td>{{list.hongbao_id}}</td>
                <td>{{list.speech_content}}</td>
                <td>{{list.give_way == 1?"均价赠":"随机赠"}}</td>
                <td>{{list.red_envelope}}</td>
                <td>{{list.red_number}}</td>
                <td>
                    开始时间：{{list.start_time|ddtt}}
                    <br> 结束时间：{{list.end_time|ddtt}}
                </td>
                <td>
                    <a href="#/hongbao/add?hongbao_id={{list.hongbao_id}}" class="sui-btn btn-primary">
                        {{'edit'|translate}} </a>
                    <a href="#/hongbao/detail?hongbao_id={{list.hongbao_id}}" class="sui-btn btn-success">
                        {{'详情'|translate}} </a>
                </td>
                <td>
                    <wx-qrcode stype="'HBHD'" id="list.hongbao_id"></wx-qrcode>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="{{pageNo}}" page-size="pageSize" total="hongbao_count" get-data="getList(pageNo)"></pager>
    <!-- 分页end -->
</div>